package com.easyCode.sqlMapper.mapInfoAdaptor;

import com.easyCode.sqlBuilder.SqlInfo;
import com.easyCode.sqlMapper.mapInfo.MapInfo;

/**
 * @author 大忽悠
 * @create 2022/12/2 14:29
 */
public interface MapInfoAdaptor <T extends MapInfo>{
    /**
     * @param source sqlInfo子类
     * @return 当前适配器是否支持适配当前sqlInfo
     */
    boolean support(SqlInfo source);
    /**
     * @param source sqlInfo子类
     * @return mapInfo子类
     */
    T adapter(SqlInfo source);
}
